﻿using System;
using System . Collections . Generic;
using System . Linq;
using System . Text;
using System . Threading . Tasks;
using System . Xml . Linq;

namespace GameClassLibrary . Buffs
{
    public class Buff : GameObject
    {
        public virtual string Name { get; set; }

        public virtual string Introduction { get; set; }

        public virtual DateTime StartDate { get; set; }

        public virtual TimeSpan UpTime { get; set; }

        public override void NextDay ( )
        {

        }


        public Buff ( )
        {

        }

        public Buff ( string name , string introduction )
        {

        }

        public Buff ( string name , string introduction , TimeSpan upTime )
        {

        }

        public Buff ( string name , string introduction , DateTime startDate , TimeSpan upTime )
        {

        }
        public Buff ( XElement saving ) : base ( saving )
        {

        }

        public override XElement Save ( )
        {
            XElement temp=base.Save();

            temp . SetAttributeValue ( "Name" , Name );
            temp . SetAttributeValue ( "Introduction" , Introduction );
            temp . SetAttributeValue ( "StartDate" , StartDate );
            temp . SetAttributeValue ( "UpTime" , UpTime );

            return temp;
        }
    }
}
